package com.zhentao.admin.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户表
 * @TableName ad_user
 */
@ApiModel(description = "用户表")
@TableName(value ="ad_user")
@Data
public class AdUser implements Serializable {
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", position = 1)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号", position = 2)
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", position = 3)
    @TableField(value = "password")
    private String password;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名", position = 4)
    @TableField(value = "administrator_name")
    private String administratorName;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", position = 5)
    @TableField(value = "gender")
    private String gender;

    /**
     * 年龄
     */
    @ApiModelProperty(value = "年龄", position = 6)
    @TableField(value = "age")
    private Integer age;

    /**
     * 盐
     */
    // @ApiModelProperty(value = "盐", position = 7)
    // @TableField(value = "salt")
    // private String salt;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像", position = 8)
    @TableField(value = "administrator_image")
    private String administratorImage;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话", position = 9)
    @TableField(value = "administrator_phone")
    private String administratorPhone;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", position = 10)
    @TableField(value = "address")
    private String address;

    /**
     * 是否删除（1未删除/2删除）
     */

    @ApiModelProperty(value = "是否删除（1未删除/2删除）", position = 11)
    @TableLogic(value = "1",delval = "2")
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}